package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 客户信息表
 * </p>
 *
 * @author liPeng
 * @since 2024-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TMS_M_CUSTOMER")
@ApiModel(value = "TmsMCustomer对象", description = "客户信息表")
public class MCustomer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "客户代码")
    @TableField("CUSTOMER_CODE")
    private String customerCode;

    @ApiModelProperty(value = "类型。1个人2企业。个人时填身份证反之纳税号")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "客户名称")
    @TableField("CUSTOMER_NAME")
    private String customerName;

    @ApiModelProperty(value = "纳税人识别号")
    @TableField("TIN")
    private String tin;

    @ApiModelProperty(value = "身份证号")
    @TableField("ID_NUMBER")
    private String idNumber;

    @ApiModelProperty(value = "联系人姓名")
    @TableField("CONTACTS")
    private String contacts;

    @ApiModelProperty(value = "联系电话")
    @TableField("TEL")
    private String tel;

    @ApiModelProperty(value = "联系地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "创建人ID")
    @TableField("CREATE_BY")
    private Long createBy;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("CREATE_BY_NAME")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("UPDATE_BY")
    private Long updateBy;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("UPDATE_BY_NAME")
    private String updateByName;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;
}
